var AldeasInfantiles = AldeasInfantiles || angular.module("AldeasInfantiles", []);

AldeasInfantiles.controller("MenuView", function($scope, $location) {
  
  $scope.activeInventory = false;

  $scope.getClass = function(path) {
    path = currentPath + path;
    if ($location.absUrl() == path) {
      return "active"
    } else {
      return ""
    }
  }

  $scope.getInventoryClass = function() {
    if ($scope.activeInventory) {
      return "active"
    } else {
      return ""
    }
  }

  $scope.evaluateInventoryClass = function(path) {
    path = currentPath + path;
    if ($location.absUrl() == path) {
      $scope.activeInventory = true;
    }
  }
  
});